package com.daiyang.campus_lucky_draw.service;

import com.daiyang.campus_lucky_draw.contreller.param.DrawPrizeParam;
import com.daiyang.campus_lucky_draw.contreller.param.ShowWinningRecordsParam;
import com.daiyang.campus_lucky_draw.mapper.DO.WinningRecordDO;
import com.daiyang.campus_lucky_draw.service.dto.WinningRecordDTO;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface DrawPrizeService {
    void drawPrize(DrawPrizeParam param);

    Boolean checkDrawPrizeValid(DrawPrizeParam param);


    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    void deleteRecords(@NotNull(message = "活动id不能为空！") Long activityId, @NotNull(message = "奖品id不能为空！") Long prizeId);

    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
